Skip to main content

DATA TYPE in C/C++


 

BUILT IN OF PRIMARY DATA TYPE    

  1. int (Integer)
  2. float(Floating-point)
  3. double (Double Floating-point)
  4. char (Character)
  5. wchar_t (Wide Character)
  6. bool (Boolean)
  7. void (Empty)

Modified Data Types List   

  • signed int - (used for integers)
  • unsigned - int (can only store positive integers)
  • short (used - for small integers (range -32768 to 32767))
  • unsigned short - (used for small positive integers (range 0 to 65,535))
  • Long - (used for large integers)
  • unsigned long - (used for large positive integers )
  • long long - (used for very large integers)
  • unsigned long long - (used for very large positive integers)
  • long double - (used for large floating-point numbers)
  • signed char - (used for characters (guaranteed range -127 to 127))
  • unsigned char - (used for characters (range 0 to 255))


Derived Type Data Type   

  1. Function
  2. Array
  3. Pointers
  4. References


User-Defined Data Type  

  1. Class
  2. Structure
  3. Union
  4. Enumeration
  5. Typedef defined DataType




Comments

Popular posts from this blog

Flow Charts - What Is a Flow Chart? When to Use a Flowchart? Flowchart Symbols & Components

  Flow Charts     Flow charts are a useful tool in many situations, as we make a process easy to understand at a glance. Using just a few words and some simple symbols, they show clearly what happens at each stage and how this affects other decisions and actions.   What Is a Flow Chart?     In 1921, the Frank and Lillian presented what was only a "graphic-based method" in a presentation titled: “ Process Charts: First Steps in Finding the One Best Way to do Work ”, to members of the American Society of Mechanical Engineers (ASME). When to Use a Flowchart?     Flowchart is a very simple yet powerful tool to improve productivity in both our personal and work life. Here are some ways flowchart can be helpful:   ·      Document a process ·      Present solution to a problem ·      Brainstorm ideas in a meeting ·      Design an operation system ·    ...

Most Asked Pattern Programs in C

  Pattern Programs in C  

Generations-of-Computers

  What is a computer?            Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions (called program), produces a result (output), and saves it for future use. This tutorial explains the foundational concepts of computer hardware, software, operating systems, peripherals, etc. along with how to get the most value and impact from computer technology. Functionalities of a Computer  There are three basic functionalities of a Computer System and they are  1. Input  2. Process  3. Output  But if we look at it in a very broad sense, any digital computer carries out the following five functions: Step 1 - Takes data as input.  Step 2 - Stores the data/instructions in its memory and uses them as required. Step 3 - Processes the data and converts it into useful information.  Step 4 - Generates the output.  Step 5 - Controls...